<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<title></title>
	</head>
	<body>
		<div id="app">
			{{msg}}
			<hr >
			<button type="button" v-on:click="show()">点我</button>
			<button type="button" v-on:click="show">点我</button>
			<button type="button" @click="show()">点我</button>
		</div>
	</body>
	
	<script type="text/javascript">
		new Vue({
			el:"#app",
			data:{
				msg:"哇咔咔"
			},
			methods:{
				show:function(){
					alert("呦呼~~~~~");
					console.log("show methods");
					
				}
			}
			
		});
	</script>
</html>
